//
//  DeveloperInfoViewController.m
//  StationManager
//
//  Created by 张佳强 on 17/3/22.
//  Copyright © 2017年 Helong. All rights reserved.
//

#import "DeveloperInfoViewController.h"

@interface DeveloperInfoViewController ()

//公司QQ
@property (nonatomic,strong) UILabel * QQLabel;
//公司传真
@property (nonatomic,strong) UILabel * faxLabel;
//公司名称
@property (nonatomic,strong) UILabel * nameLabel;
//公司邮箱
@property (nonatomic,strong) UILabel * emailLabel;
//售后支持电话
@property (nonatomic,strong) UILabel * sellLabel1;
//售后支持电话
@property (nonatomic,strong) UILabel * sellLabel2;
//400电话
@property (nonatomic,strong) UILabel * phoneLabel;
//办公室电话
@property (nonatomic,strong) UILabel * officeLabel;
//公司地址
@property (nonatomic,strong) UILabel * addressLabel;
//业务咨询电话
@property (nonatomic,strong) UILabel * adviseLabel1;
//业务咨询电话
@property (nonatomic,strong) UILabel * adviseLabel2;
//公司邮编
@property (nonatomic,strong) UILabel * emailCodeLabel;

@end

@implementation DeveloperInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.title = @"开发者信息";
    [self setUI];
}

//搭建UI
- (void)setUI {
    
    _nameLabel = [[UILabel alloc]init];
    _nameLabel.text = @"公司：河北泽华伟业科技股份有限公司";
    _nameLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_nameLabel];
    
    _addressLabel = [[UILabel alloc]init];
    _addressLabel.text = @"地址：河北石家庄新石北路399号";
    _addressLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_addressLabel];
    
    _emailCodeLabel = [[UILabel alloc]init];
    _emailCodeLabel.text = @"邮编：050091";
    _emailCodeLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_emailCodeLabel];
    
    _QQLabel = [[UILabel alloc]init];
    _QQLabel.text = @"企业QQ：4000968706";
    _QQLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_QQLabel];
    
    _phoneLabel = [[UILabel alloc]init];
    _phoneLabel.text = @"400电话：4000968706";
    _phoneLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_phoneLabel];
    
    _adviseLabel1 = [[UILabel alloc]init];
    _adviseLabel1.text = @"业务咨询：0311-85202628";
    _adviseLabel1.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_adviseLabel1];
    
    _adviseLabel2 = [[UILabel alloc]init];
    _adviseLabel2.text = @"13323012506";
    _adviseLabel2.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_adviseLabel2];
    
    _sellLabel1 = [[UILabel alloc]init];
    _sellLabel1.text = @"售后支持：0311-85202683";
    _sellLabel1.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_sellLabel1];
    
    _sellLabel2 = [[UILabel alloc]init];
    _sellLabel2.text = @"0311-83858706";
    _sellLabel2.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_sellLabel2];
    
    _officeLabel = [[UILabel alloc]init];
    _officeLabel.text = @"办公室：0311-85202677";
    _officeLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_officeLabel];
    
    _faxLabel = [[UILabel alloc]init];
    _faxLabel.text = @"传真：0311-85202609";
    _faxLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_faxLabel];
    
    _emailLabel = [[UILabel alloc]init];
    _emailLabel.text = @"邮箱：zhwy@zhwykj.com";
    _emailLabel.font = [UIFont systemFontOfSize:13.0];
    [self.view addSubview:_emailLabel];
    
    [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(@10);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_addressLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_nameLabel.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_emailCodeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_addressLabel.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_QQLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_emailCodeLabel.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_QQLabel.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_adviseLabel1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_phoneLabel.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_adviseLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@70);
        make.top.equalTo(_adviseLabel1.mas_bottom).offset(-5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_sellLabel1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_adviseLabel2.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_sellLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@70);
        make.top.equalTo(_sellLabel1.mas_bottom).offset(-5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_officeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_sellLabel2.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_faxLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_officeLabel.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
    
    [_emailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@5);
        make.top.equalTo(_faxLabel.mas_bottom).offset(5);
        make.right.equalTo(@-5);
        make.height.mas_equalTo(25);
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
